package com.polytech.diploma.SQLGenerator.Oracle.Functions.AnalyticFunctions.WindowClause;

import java.util.List;
import java.util.Map;

import com.polytech.diploma.SQLGenerator.Oracle.Node;
import com.polytech.diploma.SQLGenerator.Oracle.Arguments.Argument;

public class WindowBound implements Node {
	protected WindowBoundType type;
	protected Argument arg;
	
	public WindowBoundType getType() {
		return type;
	}
	public void setType(WindowBoundType type) {
		this.type = type;
	}
	public Argument getArg() {
		return arg;
	}
	public void setArg(Argument arg) {
		this.arg = arg;
	}
	@Override
	public Map<String, List<String>> getTablesWithFields(
			Map<String, List<String>> fieldMap) {
		if(arg != null)
			fieldMap = arg.getTablesWithFields(fieldMap);
		return fieldMap;
	}
	
	
}
